<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8"/>
    <meta content="width=device-width,inital-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <meta content="yes" name="apple-wap-web-app-capable">
    <meta content="black-translucent" name="apple-wap-web-app-status-bar-style">
    <title>$!config.title</title>

    <link href="$!webPath/resources/style/system/front/wap/css/style.css" rel="stylesheet" type="text/css">
    <script src="$!webPath/resources/style/system/front/wap/js/jquery-1.10.2.min.js"></script>
    <script src="$!webPath/resources/style/system/front/wap/js/TouchSlide.1.1.js"></script>
    <script src="$!webPath/resources/style/system/front/wap/js/jquery.SuperSlide.2.1.1.js"></script>
    <script src="$!webPath/resources/style/system/front/wap/js/scrollfix.js"></script>
    <script type="text/javascript">
        function timeCount(remain_id) {
            function _fresh() {
                var nowDate = new Date(), //当前时间
                        endDate = new Date($('#' + remain_id).attr('endtime')), //截止时间
                        totalS = parseInt((endDate.getTime() - nowDate.getTime()) / 1000); //总秒数
                _day = parseInt(totalS / 3600 / 24) + "";
                _hour = parseInt(totalS / 3600 % 24) + "";
                _minute = parseInt((totalS / 60) % 60) + "";
                _second = parseInt(totalS % 60) + "";
                d_html = "";
                if (_day.length < 2) {
                    d_html = "<b>0</b>";
                }
                for (var n = 0; n < _day.length; n++) {
                    var q = _day.substring(n, n + 1);
                    d_html = d_html + '<b>' + q + '</b>';
                }
                d_html = d_html + "<b>天</b>"
                h_html = "";
                if (_hour.length < 2) {
                    h_html = "<b>0</b>";
                }
                for (var n = 0; n < _hour.length; n++) {
                    var q = _hour.substring(n, n + 1);
                    h_html = h_html + '<b>' + q + '</b>';
                }
                m_html = "";
                if (_minute.length < 2) {
                    m_html = "<b>0</b>";
                }
                for (var n = 0; n < _minute.length; n++) {
                    var q = _minute.substring(n, n + 1);
                    m_html = m_html + '<b>' + q + '</b>'
                }
                s_html = "";
                if (_second.length < 2) {
                    s_html = "<b>0</b>";
                }
                for (var n = 0; n < _second.length; n++) {
                    var q = _second.substring(n, n + 1);
                    s_html = s_html + '<b>' + q + '</b>'
                }
                jQuery('#' + remain_id).html(
                        d_html + '<strong>:</strong>' + h_html
                        + '<strong>:</strong>' + m_html
                        + '<strong>:</strong>' + s_html);
                if (totalS <= 0) {
                    jQuery('#' + remain_id).html('该0元试用已结束');
                    clearInterval(sh);
                }
            }

            _fresh();
            var sh = setInterval(_fresh, 1000);
        }

        jQuery(document).ready(function () {
            jQuery("li[id=gc_]").each(function (index, element) {
                if (jQuery(this).find(".fl").html().length > 5) {
                    var a = jQuery(this).find(".fl").html().substring(0, 5);
                    jQuery(this).find(".fl").html(a);
                }
            });

            timeCount("time_down_info");
            if (isWeiXin()) {
                jQuery(".phone_top").hide();
            } else {
                jQuery(".phone_top").show();
            }
        });
        function search_form() {
            jQuery("#theForm").submit();
        }
        function isWeiXin() {
            var ua = window.navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == 'micromessenger') {
                return true;
            } else {
                return false;
            }
        }
        var msie = {};
        $(function () {
            $("#searchShopping").scrollFix({
                fixClass: 'search_line_search'
            });
        });


    </script>

</head>
<body class="index_bg">

<div class="phone_main">
    <!--顶部-->
    <!--<div class="phone_top">
        <a href="$!webPath/wap/index.htm">
            <img

        <a class="close" href="javascript:void(0);"
            onclick="jQuery('.phone_top').remove();"> <img
            src="$!webPath/resources/style/system/front/wap/images/close.png"
            width="30" height="30"></a>
    </div>-->

    <!--关于logo部分暂时隐藏-->
   <!-- <div class="logo_line">
        <img src="$!webPath/resources/style/system/front/wap/images/wap_logo.png">
        #if($!{user})
        <span class="log"><a href="$!webPath/shopping_logout.htm">退出</a> </span>
        <span class="log"><a href="javascript:void(0);">$!CommUtil.substring("$!{user.userName}",5)您好</a></span>
        #else
        <span class="log"><a href="$!webPath/user/login.htm">登录</a> </span>
        <span class="log"><a href="$!webPath/register.htm">注册</a> </span>
        #end
    </div>-->

    <form name="theForm" id="theForm" action="$!webPath/search.htm" method="post">
        <div class="search_line" id="searchShopping">
				<span>
				<input type="hidden" name="type" value="goods"/>
				<input type="text" placeholder="搜索商品" name="keyword" id="keyword">
				</span>
            <b><img src="$!webPath/resources/style/system/front/wap/images/search_icon.png" width="25" height="25"
                    onclick="search_form();"></b>
        </div>
    </form>

    <!--幻灯-->
    <div class="focusBox" id="focusBox">
        <script src="$!webPath/advert_invoke.htm?id=262157"></script>
    </div>

    <!--导航菜单-->
    <div class="nav">
        <ul>
            <li><a href="$!webPath/goodsclass.htm"><img
                    src="$!webPath/resources/style/system/front/wap/images/nav_fl.png">
                <p>分类</p></a></li>
            <li><a href="$!webPath/brand.htm"><img
                    src="$!webPath/resources/style/system/front/wap/images/nav_pp.png">
                <p>品牌街</p></a></li>
            <li><a href="$!webPath/goods_cart1.htm"><img
                    src="$!webPath/resources/style/system/front/wap/images/nav_gwc.png">
                <p>购物车</p></a></li>
            <li><a href="$!webPath/buyer/index.htm"><img
                    src="$!webPath/resources/style/system/front/wap/images/nav_yhzx.png">
                <p>用户中心</p></a></li>
        </ul>
    </div>


    <!--活动专题区-->
    <div id="slideBox" class="slideBox">
        <div class="hd">
            <ul></ul>
        </div>
        <div class="bd">
            <ul>
            	#foreach($!activity in $!activities)
                <li><a href="$!webPath/activity_$!{activity.id}.htm"><img src="$!imageWebServer/$!activity.ac_acc.path/$!activity.ac_acc.name" height="150" width="100%" /></a></li>
                #end
            </ul>
        </div>
    </div>
	
    <script type="text/javascript">
        for (var i=0;i<jQuery("#slideBox").children('.bd').find('li').length;i++){
            jQuery("#slideBox").children('.hd').find('ul').prepend("<li></li>");
        }

        jQuery(".slideBox").slide({mainCell:".bd ul",autoPlay:true});
    </script>


    <!--特价商品-->
    <div class="phone_floor">
        <div class="phone_activity rh_recom">
            <h1><span class="fl">特价商品</span><span class="fr"></span></h1>
            <ul>
                #foreach($obj in $bgs)
                #set($goods_url="$!webPath/goods_$!{obj.bg_goods.id}.htm")
                #if($!config.second_domain_open)
                #set($goods_url="http://$!{obj.bg_goods.goods_store.store_second_domain}.$!{domainPath}/goods_$!{obj.bg_goods.id}.htm")
                #end
                <li>
                    <div>
                        <a href="$!goods_url" class="limit_box">
                        #if($!obj.bg_goods.goods_main_photo)
                        #set($img="$!imageWebServer/$!{obj.bg_goods.goods_main_photo.path}/$!{obj.bg_goods.goods_main_photo.name}_small.$!{obj.bg_goods.goods_main_photo.ext}")
                        #else
                        #set($img="$!imageWebServer/resources/style/common/images/good.jpg")
                        #end
                        <img src="$!img" >
                        </a>
                        <span class="rh_con_tit"><a href="$!goods_url">$!{obj.bg_goods.goods_name}</a></span>
                        <p class="price">现价:¥<b>$!{obj.bg_goods.goods_current_price}</b></p>
                    </div>
                </li>
                #end
            </ul>
        </div>
    </div>


    <!--推荐商品-->
    <div class="phone_floor">
        <h1>
            <span class="fl">推荐商品</span>
        </h1>
        <div class="recom rh_recom">
            <div class="ohbox">
                <ul class="piclist">
                    #foreach($!store_reommend_good in $store_reommend_goods)
                    #if($!store_reommend_good.goods_main_photo)
                    #set($img="$!imageWebServer/$!{store_reommend_good.goods_main_photo.path}/$!{store_reommend_good.goods_main_photo.name}_middle.$!{store_reommend_good.goods_main_photo.ext}")
                    #else
                    #set($img="$!imageWebServer/resources/style/common/images/good.jpg")
                    #end

                    #set($goods_url="$!webPath/goods_$!{store_reommend_good.id}.htm")
                    #if($!config.second_domain_open)
                    #set($goods_url="http://$!{store_reommend_good.goods_store.store_second_domain}.$!{domainPath}/goods_$!{store_reommend_good.id}.htm")
                    #end
                    <li>
                        <div>
                        <a href="$!goods_url" class="limit_box">
                            <img src="$!img">
                        </a>
                        <span class="rh_con_tit"><a href="$!goods_url">$!store_reommend_good.goods_name</a></span>
                        <span class="store_price"><i>￥$!{store_reommend_good.goods_current_price}</i> <em>$!{store_reommend_good.goods_salenum}人付款</em></span>
                        </div>
                    </li>
                    #end
                </ul>
            </div>
        </div>
    </div>


    <!--推荐店铺-->
    <div class="phone_floor">
        <h1>
            <span class="fl">推荐店铺</span>
        </h1>
        <div class="recom recom-rx">
            <div class="ohbox">
                <ul class="piclist">
                    #foreach($!store in $!sr)
                    <li>
                        <a href="$!webPath/store_$!{store.id}.htm?parameter=recommend">
                            #if($!obj.store.store_logo)
                            <img src="$!webPath/$!{obj.store.store_logo.path}/$!{obj.store.store_logo.name}" style="height:100%;">
                            #else
                            <img src="$!webPath/$!config.storeImage.path/$!config.storeImage.name" style="height:100%;">
                            #end
                            <span class="re_name rx_re_name">$!store.store_name</span>
                            <span class="bg"></span>
                        </a>
                    </li>
                    #end
                </ul>
            </div>
        </div>
    </div>

    <div id="phone_floor" class="phone_floor">
        <h1><span class="fl">热门品牌</span><span class="fr"><a href="$!webPath/brand.htm">更多</a></span></h1>
        <div class="phone_brand">
            <ul id="banners">
                #foreach($gb in $gbs)
                <li #if($!velocityCount>4)style="display:none;"#end>
                    <a href="$!webPath/brand_goods_$!{gb.id}.htm" target="_blank"><img
                            src="$!imageWebServer/$!gb.brandLogo.path/$!gb.brandLogo.name" width="88" height="44"/></a>
                </li>
                #end
            </ul>
        </div>
    </div>


    <!--底部菜单-->
    <!--
        <div class="footerBtn">
            <ul class="clearFix">
                <li><a href="http://www.365hele.com/wap/index.htm"><img src="$!webPath/resources/style/system/front/wap/images/btn_footer01.jpg"></a></li>
                <li><a href="#"><img src="$!webPath/resources/style/system/front/wap/images/btn_footer02.jpg"></a></li>
                <li><a href="#"><img src="$!webPath/resources/style/system/front/wap/images/btn_footer03.jpg"></a></li>
                <li><a href="http://www.365hele.com/wap/goods_cart1.htm"><img src="$!webPath/resources/style/system/front/wap/images/btn_footer04.jpg"></a></li>
                <li><a href="http://www.365hele.com/wap/buyer/center.htm"><img src="$!webPath/resources/style/system/front/wap/images/btn_footer05.jpg"></a></li>
            </ul>
        </div>
    -->


</div>

$!httpInclude.include("/footer.htm")


</body>
</html>